package com.cjh.dao.impl;

import com.cjh.dao.OrderDao;
import com.cjh.pojo.Order;

/**
 * @Author: huahua
 * @Date: 2020-09-17 22:07
 */
public class OrderDaoImpl extends BaseDao implements OrderDao {
    @Override
    public int save(Order order) {
        String sql = "INSERT INTO `book`.`t_order`(`order_id`, `create_time`, `price`, `status`, `user_id`) VALUES (?,?,?,?,?)";
        return update(sql, order.getOrderId(), order.getCreateTime(), order.getPrice(), order.getStatus(), order.getUserId());
    }
}
